<template>
    <div class="dialog-wrapper">
        <div class="dialog">
            <div class="header">
                <!-- 插槽传值！！ -->
                <!-- 对比讲解页码MiAlert -->
                <slot name="header">
                </slot>
            </div>
            <div class="content">
                <slot name="content">

                </slot>
            </div>
            <div class="footer">
                <slot name="footer">

                </slot>
            </div>

        </div>
    </div>
</template>
<script setup lang="ts">

</script>
<style scoped>
.dialog-wrapper {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
}

.dialog {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    background-color: #fff;
    margin: 0 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    color: rgb(51, 51, 51);
    font-size: 17px;
    height: 42px;
    display: flex;
    align-items: flex-end;
}

.content {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px 0 16px;
    font-size: 13px;
    color: rgb(153, 153, 153);
    line-height: 23px;
}

.footer {
    width: 100%;
    margin-top: 20px;
    text-align: center;

}
</style>